#pragma once
#include "..\FileHelper\IFileHelper.h"

#pragma comment(lib, "FileHelper.lib")

class CDllHelper
{
public:
	CDllHelper()
	{
		CreateObject(&m_pFileHelper);
	}

	~CDllHelper()
	{
		DestroyObject(m_pFileHelper);
		m_pFileHelper = NULL;
	}

	void WriteData(char* pData, int nLen)
	{
		if (m_pFileHelper)
		{
			m_pFileHelper->WriteDataToFile(pData, nLen);
		}
	}

private:
	IFileHelper*		m_pFileHelper;
};